<html xmlns:th="http://www.thymeleaf.org">
    <head>
        <script src="jquery-1.8.3.js"></script>
        <script type="text/javascript">
            $(function(){
                my.addCardAuth({
                    // alipay.marketing.card.activateurl.apply 接口返回值需decode后再入参
                    url: 'https://memberprod.alipay.com/account/openform/activecard.htm?app_id=2021002108622292&template_id=20210317000000002674299000300761&__webview_options__=canPullDown%3dNO%26transparentTitle%3dauto&out_string=201928393932',
                    alert(message) {
                        alert(222);
                    },
                    success: (res) => {
                        console.log(JSON.stringify(res));
                    },
                    fail: (res) => {
                        console.log(JSON.stringify(res));
                    },
                });
            });
        </script>
    </head>
    <body>
    <h1>单文件</h1>
    <form class="form-signin" th:action="@{/SingleFile/upload}" method="post" enctype="multipart/form-data">
        <p><input type="file" name="myfile"/></p>
        <p><input type="submit" value="上传"/></p>
        <p style="color: red" th:text="${result_singlefile}" th:if="${not #strings.isEmpty(result_singlefile)}"></p>
    </form>
    11222
    <img src="abc.png"/>
    </body>
</html>